package com.example.yc23.demo.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/*
负责页面的转发和跳转
 */
@Controller
public class IndexController {
    //跳转到后台管理首页
    @GetMapping({"/", "/index", "/admin/index", "/admin/index.html"})
    public String adminIndex(){
        return "admin/index";
    }


}
